﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_User.aspx.cs" Inherits="V5_EShop.Admin.Admin_User" MasterPageFile="~/Admin/admin.Master"%>
<asp:Content ID="Content1" ContentPlaceHolderID="Header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    用户管理
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Nav" runat="server">
     <a href="Admin_User.aspx">用户管理</a> | <a href="Admin_User.aspx?Action=edit">添加用户</a>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Content" runat="server">
    <asp:MultiView ID="MultiViewList" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" CssClass="tablelist tableheader overlist"
                GridLines="None" OnRowCommand="gvList_RowCommand">
                <HeaderStyle CssClass="headertext" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkitem" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="UserName" HeaderText="会员账号" />
                    <asp:BoundField DataField="TrueName" HeaderText="真实姓名" />
                    <asp:BoundField DataField="UserEmail" HeaderText="电子邮件" />
                    <asp:BoundField DataField="QQ" HeaderText="QQ号码" />
                    <asp:BoundField HeaderText="积分" DataField="UserScore" />
                    <asp:BoundField DataField="RegDate" HeaderText="注册时间" />
                    <asp:TemplateField HeaderText="状态">
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem,"IsLock").ToString()=="1"?"锁定":"正常"%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="Button1" runat="server" Text="修改" CommandArgument='<%# Bind("ID")%>'
                                CommandName="go" />
                            <asp:LinkButton ID="Button2" runat="server" Text="删除" CommandArgument='<%# Bind("ID")%>'
                                CommandName="del" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" Width="100%">
            </webdiyer:AspNetPager>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table border="0" cellpadding="5" cellspacing="1" class="tablelist tableheader">
                <tr>
                    <td colspan="2">
                        用户操作
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        用户名：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        密 码：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserPassword" runat="server" TextMode="Password"></asp:TextBox>
                        不修改可以为空!
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        密 码(确认)：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserPassword2" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        e-mail：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserEmail" runat="server" Width="258px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        找回密码问题：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserQuestion" runat="server" Width="257px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        找回密码答案：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserAnswer" runat="server" Width="254px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        积分：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserScore" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        ICQ：
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserICQ" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" width="250">
                        所属会员组：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlGroupID" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:HiddenField ID="txtID" runat="server" Value="0" />
                        <asp:Button ID="btnUserSave" runat="server" OnClick="btnUserSave_Click" Text="添加保存" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Footer" runat="server">
</asp:Content>